package com.zlt.appparking.entity;

import java.util.ArrayList;
import java.util.List;

public class PermissionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PermissionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPIdIsNull() {
            addCriterion("p_id is null");
            return (Criteria) this;
        }

        public Criteria andPIdIsNotNull() {
            addCriterion("p_id is not null");
            return (Criteria) this;
        }

        public Criteria andPIdEqualTo(Long value) {
            addCriterion("p_id =", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdNotEqualTo(Long value) {
            addCriterion("p_id <>", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdGreaterThan(Long value) {
            addCriterion("p_id >", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdGreaterThanOrEqualTo(Long value) {
            addCriterion("p_id >=", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdLessThan(Long value) {
            addCriterion("p_id <", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdLessThanOrEqualTo(Long value) {
            addCriterion("p_id <=", value, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdIn(List<Long> values) {
            addCriterion("p_id in", values, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdNotIn(List<Long> values) {
            addCriterion("p_id not in", values, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdBetween(Long value1, Long value2) {
            addCriterion("p_id between", value1, value2, "pId");
            return (Criteria) this;
        }

        public Criteria andPIdNotBetween(Long value1, Long value2) {
            addCriterion("p_id not between", value1, value2, "pId");
            return (Criteria) this;
        }

        public Criteria andPNameIsNull() {
            addCriterion("p_name is null");
            return (Criteria) this;
        }

        public Criteria andPNameIsNotNull() {
            addCriterion("p_name is not null");
            return (Criteria) this;
        }

        public Criteria andPNameEqualTo(String value) {
            addCriterion("p_name =", value, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameNotEqualTo(String value) {
            addCriterion("p_name <>", value, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameGreaterThan(String value) {
            addCriterion("p_name >", value, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameGreaterThanOrEqualTo(String value) {
            addCriterion("p_name >=", value, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameLessThan(String value) {
            addCriterion("p_name <", value, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameLessThanOrEqualTo(String value) {
            addCriterion("p_name <=", value, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameLike(String value) {
            addCriterion("p_name like", value, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameNotLike(String value) {
            addCriterion("p_name not like", value, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameIn(List<String> values) {
            addCriterion("p_name in", values, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameNotIn(List<String> values) {
            addCriterion("p_name not in", values, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameBetween(String value1, String value2) {
            addCriterion("p_name between", value1, value2, "pName");
            return (Criteria) this;
        }

        public Criteria andPNameNotBetween(String value1, String value2) {
            addCriterion("p_name not between", value1, value2, "pName");
            return (Criteria) this;
        }

        public Criteria andPDescIsNull() {
            addCriterion("p_desc is null");
            return (Criteria) this;
        }

        public Criteria andPDescIsNotNull() {
            addCriterion("p_desc is not null");
            return (Criteria) this;
        }

        public Criteria andPDescEqualTo(String value) {
            addCriterion("p_desc =", value, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescNotEqualTo(String value) {
            addCriterion("p_desc <>", value, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescGreaterThan(String value) {
            addCriterion("p_desc >", value, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescGreaterThanOrEqualTo(String value) {
            addCriterion("p_desc >=", value, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescLessThan(String value) {
            addCriterion("p_desc <", value, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescLessThanOrEqualTo(String value) {
            addCriterion("p_desc <=", value, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescLike(String value) {
            addCriterion("p_desc like", value, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescNotLike(String value) {
            addCriterion("p_desc not like", value, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescIn(List<String> values) {
            addCriterion("p_desc in", values, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescNotIn(List<String> values) {
            addCriterion("p_desc not in", values, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescBetween(String value1, String value2) {
            addCriterion("p_desc between", value1, value2, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPDescNotBetween(String value1, String value2) {
            addCriterion("p_desc not between", value1, value2, "pDesc");
            return (Criteria) this;
        }

        public Criteria andPLevelsIsNull() {
            addCriterion("p_levels is null");
            return (Criteria) this;
        }

        public Criteria andPLevelsIsNotNull() {
            addCriterion("p_levels is not null");
            return (Criteria) this;
        }

        public Criteria andPLevelsEqualTo(Byte value) {
            addCriterion("p_levels =", value, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsNotEqualTo(Byte value) {
            addCriterion("p_levels <>", value, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsGreaterThan(Byte value) {
            addCriterion("p_levels >", value, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsGreaterThanOrEqualTo(Byte value) {
            addCriterion("p_levels >=", value, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsLessThan(Byte value) {
            addCriterion("p_levels <", value, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsLessThanOrEqualTo(Byte value) {
            addCriterion("p_levels <=", value, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsIn(List<Byte> values) {
            addCriterion("p_levels in", values, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsNotIn(List<Byte> values) {
            addCriterion("p_levels not in", values, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsBetween(Byte value1, Byte value2) {
            addCriterion("p_levels between", value1, value2, "pLevels");
            return (Criteria) this;
        }

        public Criteria andPLevelsNotBetween(Byte value1, Byte value2) {
            addCriterion("p_levels not between", value1, value2, "pLevels");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNull() {
            addCriterion("parent_id is null");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNotNull() {
            addCriterion("parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andParentIdEqualTo(Long value) {
            addCriterion("parent_id =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotEqualTo(Long value) {
            addCriterion("parent_id <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThan(Long value) {
            addCriterion("parent_id >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThanOrEqualTo(Long value) {
            addCriterion("parent_id >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThan(Long value) {
            addCriterion("parent_id <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThanOrEqualTo(Long value) {
            addCriterion("parent_id <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdIn(List<Long> values) {
            addCriterion("parent_id in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotIn(List<Long> values) {
            addCriterion("parent_id not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdBetween(Long value1, Long value2) {
            addCriterion("parent_id between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotBetween(Long value1, Long value2) {
            addCriterion("parent_id not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIsNull() {
            addCriterion("parent is null");
            return (Criteria) this;
        }

        public Criteria andParentIsNotNull() {
            addCriterion("parent is not null");
            return (Criteria) this;
        }

        public Criteria andParentEqualTo(String value) {
            addCriterion("parent =", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentNotEqualTo(String value) {
            addCriterion("parent <>", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentGreaterThan(String value) {
            addCriterion("parent >", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentGreaterThanOrEqualTo(String value) {
            addCriterion("parent >=", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentLessThan(String value) {
            addCriterion("parent <", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentLessThanOrEqualTo(String value) {
            addCriterion("parent <=", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentLike(String value) {
            addCriterion("parent like", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentNotLike(String value) {
            addCriterion("parent not like", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentIn(List<String> values) {
            addCriterion("parent in", values, "parent");
            return (Criteria) this;
        }

        public Criteria andParentNotIn(List<String> values) {
            addCriterion("parent not in", values, "parent");
            return (Criteria) this;
        }

        public Criteria andParentBetween(String value1, String value2) {
            addCriterion("parent between", value1, value2, "parent");
            return (Criteria) this;
        }

        public Criteria andParentNotBetween(String value1, String value2) {
            addCriterion("parent not between", value1, value2, "parent");
            return (Criteria) this;
        }

        public Criteria andPIconIsNull() {
            addCriterion("p_icon is null");
            return (Criteria) this;
        }

        public Criteria andPIconIsNotNull() {
            addCriterion("p_icon is not null");
            return (Criteria) this;
        }

        public Criteria andPIconEqualTo(String value) {
            addCriterion("p_icon =", value, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconNotEqualTo(String value) {
            addCriterion("p_icon <>", value, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconGreaterThan(String value) {
            addCriterion("p_icon >", value, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconGreaterThanOrEqualTo(String value) {
            addCriterion("p_icon >=", value, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconLessThan(String value) {
            addCriterion("p_icon <", value, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconLessThanOrEqualTo(String value) {
            addCriterion("p_icon <=", value, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconLike(String value) {
            addCriterion("p_icon like", value, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconNotLike(String value) {
            addCriterion("p_icon not like", value, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconIn(List<String> values) {
            addCriterion("p_icon in", values, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconNotIn(List<String> values) {
            addCriterion("p_icon not in", values, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconBetween(String value1, String value2) {
            addCriterion("p_icon between", value1, value2, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPIconNotBetween(String value1, String value2) {
            addCriterion("p_icon not between", value1, value2, "pIcon");
            return (Criteria) this;
        }

        public Criteria andPHrefIsNull() {
            addCriterion("p_href is null");
            return (Criteria) this;
        }

        public Criteria andPHrefIsNotNull() {
            addCriterion("p_href is not null");
            return (Criteria) this;
        }

        public Criteria andPHrefEqualTo(String value) {
            addCriterion("p_href =", value, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefNotEqualTo(String value) {
            addCriterion("p_href <>", value, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefGreaterThan(String value) {
            addCriterion("p_href >", value, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefGreaterThanOrEqualTo(String value) {
            addCriterion("p_href >=", value, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefLessThan(String value) {
            addCriterion("p_href <", value, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefLessThanOrEqualTo(String value) {
            addCriterion("p_href <=", value, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefLike(String value) {
            addCriterion("p_href like", value, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefNotLike(String value) {
            addCriterion("p_href not like", value, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefIn(List<String> values) {
            addCriterion("p_href in", values, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefNotIn(List<String> values) {
            addCriterion("p_href not in", values, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefBetween(String value1, String value2) {
            addCriterion("p_href between", value1, value2, "pHref");
            return (Criteria) this;
        }

        public Criteria andPHrefNotBetween(String value1, String value2) {
            addCriterion("p_href not between", value1, value2, "pHref");
            return (Criteria) this;
        }

        public Criteria andPStateIsNull() {
            addCriterion("p_state is null");
            return (Criteria) this;
        }

        public Criteria andPStateIsNotNull() {
            addCriterion("p_state is not null");
            return (Criteria) this;
        }

        public Criteria andPStateEqualTo(Byte value) {
            addCriterion("p_state =", value, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateNotEqualTo(Byte value) {
            addCriterion("p_state <>", value, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateGreaterThan(Byte value) {
            addCriterion("p_state >", value, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("p_state >=", value, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateLessThan(Byte value) {
            addCriterion("p_state <", value, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateLessThanOrEqualTo(Byte value) {
            addCriterion("p_state <=", value, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateIn(List<Byte> values) {
            addCriterion("p_state in", values, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateNotIn(List<Byte> values) {
            addCriterion("p_state not in", values, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateBetween(Byte value1, Byte value2) {
            addCriterion("p_state between", value1, value2, "pState");
            return (Criteria) this;
        }

        public Criteria andPStateNotBetween(Byte value1, Byte value2) {
            addCriterion("p_state not between", value1, value2, "pState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}